<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站动态列表</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 基础样式 */
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        
        .container {
            max-width: 800px;
        }
        
        .feed-section {
            margin-bottom: 2rem;
        }
        
        .style-label {
            background-color: #f1f5f9;
            padding: 1rem;
            font-weight: 600;
            color: #334155;
            border-radius: 8px 8px 0 0;
            margin-bottom: 0;
        }
        
        /* 通用动态卡片样式 */
        .post-card {
            background-color: white;
            border-radius: 0 0 8px 8px;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .post-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        /* 作者信息 */
        .post-author {
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            font-weight: 600;
            font-size: 1rem;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            color: #1e293b;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .author-name:hover {
            color: #2563eb;
        }
        
        .post-time {
            font-size: 0.875rem;
            color: #94a3b8;
        }
        
        .post-menu {
            color: #94a3b8;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .post-menu:hover {
            color: #1e293b;
        }
        
        /* 动态内容 */
        .post-content {
            padding: 1rem;
            line-height: 1.6;
        }
        
        /* 图片容器 */
        .post-images {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
            gap: 0.5rem;
            padding: 0 1rem 1rem;
        }
        
        .post-image {
            aspect-ratio: 1/1;
            background-color: #f1f5f9;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        
        .post-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        /* 单张图片样式 */
        .single-image {
            grid-template-columns: 1fr;
        }
        
        .single-image .post-image {
            aspect-ratio: 16/9;
        }
        
        /* 统计信息 */
        .post-stats {
            padding: 0.75rem 1rem;
            border-top: 1px solid #f1f5f9;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            color: #64748b;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        /* 操作按钮 */
        .post actions {
            padding: 0.5rem 0;
        }
        
        .action-buttons {
            display: flex;
            justify-content: space-around;
            padding: 0.5rem 0;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: #64748b;
            background: none;
            border: none;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            flex: 1;
        }
        
        .action-btn:hover {
            background-color: #f1f5f9;
            color: #1e293b;
        }
        
        .action-btn.liked {
            color: #ef4444;
        }
        
        .action-btn.bookmarked {
            color: #f59e0b;
        }
        
        /* 评论区 */
        .comments-section {
            padding: 0 1rem 1rem;
        }
        
        .comment-input-container {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .comment-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #e2e8f0;
            flex-shrink: 0;
        }
        
        .comment-input-wrapper {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.2);
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .comment-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .comment-content {
            flex: 1;
            background-color: #f1f5f9;
            padding: 0.75rem;
            border-radius: 16px;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.875rem;
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: #94a3b8;
        }
        
        .comment-text {
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1rem;
            font-size: 0.75rem;
        }
        
        .comment-action {
            color: #64748b;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .comment-action:hover {
            color: #2563eb;
        }
        
        /* 回复列表 */
        .replies-list {
            margin-top: 0.75rem;
            margin-left: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.5rem;
        }
        
        /* 深色风格 */
        .style-dark {
            background-color: #0f172a;
        }
        
        .style-dark .post-card {
            background-color: #1e293b;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }
        
        .style-dark .post-card:hover {
            box-shadow: 0 4px 6px rgba(0,0,0,0.4);
        }
        
        .style-dark .post-author {
            border-bottom: 1px solid #334155;
        }
        
        .style-dark .author-avatar {
            background-color: #334155;
            color: #e2e8f0;
        }
        
        .style-dark .author-name {
            color: #f8fafc;
        }
        
        .style-dark .author-name:hover {
            color: #93c5fd;
        }
        
        .style-dark .post-time {
            color: #94a3b8;
        }
        
        .style-dark .post-menu {
            color: #94a3b8;
        }
        
        .style-dark .post-menu:hover {
            color: #f8fafc;
        }
        
        .style-dark .post-content {
            color: #e2e8f0;
        }
        
        .style-dark .post-image {
            background-color: #334155;
        }
        
        .style-dark .post-stats {
            border-top: 1px solid #334155;
            border-bottom: 1px solid #334155;
            color: #94a3b8;
        }
        
        .style-dark .action-btn {
            color: #94a3b8;
        }
        
        .style-dark .action-btn:hover {
            background-color: #334155;
            color: #f8fafc;
        }
        
        .style-dark .comment-input {
            background-color: #334155;
            border-color: #475569;
            color: #e2e8f0;
        }
        
        .style-dark .comment-input:focus {
            border-color: #60a5fa;
        }
        
        .style-dark .comment-avatar {
            background-color: #334155;
        }
        
        .style-dark .comment-content {
            background-color: #334155;
        }
        
        .style-dark .comment-author {
            color: #f8fafc;
        }
        
        .style-dark .comment-time {
            color: #94a3b8;
        }
        
        .style-dark .comment-text {
            color: #e2e8f0;
        }
        
        /* 响应式调整 */
        @media (max-width: 576px) {
            .post-images {
                grid-template-columns: 1fr;
            }
            
            .action-btn span {
                display: none;
            }
            
            .action-btn {
                gap: 0;
            }
            
            .post-stats {
                flex-wrap: wrap;
                gap: 0.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <!-- 标准风格动态列表 -->
        <div class="feed-section">
            <h3 class="style-label">标准风格动态列表</h3>
            
            <!-- 无图片动态 -->
            <div class="post-card">
                <div class="post-author">
                    <div class="author-avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="author-info">
                        <a href="#" class="author-name">张明</a>
                        <div class="post-time">2小时前 · 发布了一条动态</div>
                    </div>
                    <div class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>
                
                <div class="post-content">
                    <p>今天参加了一个非常棒的技术分享会，学到了很多关于人工智能在社交网络中的应用。感觉未来的社交体验会越来越智能化，不知道大家怎么看？有没有什么有趣的想法可以分享一下？</p>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="fas fa-eye"></i>
                        <span>浏览 342</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-heart"></i>
                        <span>意向 28</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-comment"></i>
                        <span>评论 12</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <div class="action-buttons">
                        <button class="action-btn like-btn">
                            <i class="fas fa-thumbs-up"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="fas fa-comment"></i>
                            <span>评论</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn bookmark-btn">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input-container">
                        <div class="comment-avatar"></div>
                        <div class="comment-input-wrapper">
                            <input type="text" class="comment-input" placeholder="发表你的评论...">
                        </div>
                    </div>
                    
                    <div class="comments-list">
                        <div class="comment-item">
                            <div class="comment-avatar"></div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">李华</div>
                                    <div class="comment-time">1小时前</div>
                                </div>
                                <div class="comment-text">
                                    我也觉得AI会彻底改变社交方式，特别是在内容推荐和匹配方面
                                </div>
                                <div class="comment-actions">
                                    <a href="#" class="comment-action reply-btn">回复</a>
                                    <a href="#" class="comment-action like-comment-btn">点赞 (5)</a>
                                </div>
                                
                                <div class="replies-list">
                                    <div class="reply-item">
                                        <div class="comment-avatar"></div>
                                        <div class="comment-content">
                                            <div class="comment-header">
                                                <div class="comment-author">张明 <span style="color:#64748b">回复</span> 李华</div>
                                                <div class="comment-time">45分钟前</div>
                                            </div>
                                            <div class="comment-text">
                                                是的，尤其是个性化推荐，现在已经很成熟了
                                            </div>
                                            <div class="comment-actions">
                                                <a href="#" class="comment-action reply-btn">回复</a>
                                                <a href="#" class="comment-action like-comment-btn">点赞 (2)</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="comment-item">
                            <div class="comment-avatar"></div>
                            <div class="comment-content">
                                <div class="comment-header">
                                    <div class="comment-author">王芳</div>
                                    <div class="comment-time">30分钟前</div>
                                </div>
                                <div class="comment-text">
                                    有没有关于AI在隐私保护方面的讨论？这也是我很关心的问题
                                </div>
                                <div class="comment-actions">
                                    <a href="#" class="comment-action reply-btn">回复</a>
                                    <a href="#" class="comment-action like-comment-btn">点赞 (3)</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 单张图片动态 -->
            <div class="post-card">
                <div class="post-author">
                    <div class="author-avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="author-info">
                        <a href="#" class="author-name">李婷</a>
                        <div class="post-time">昨天 18:30 · 分享了一张照片</div>
                    </div>
                    <div class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>
                
                <div class="post-content">
                    <p>周末去了郊外的公园，天气真不错，随手拍了一张。大自然的景色总是能让人心情愉悦～</p>
                </div>
                
                <div class="post-images single-image">
                    <div class="post-image">
                        <img src="https://picsum.photos/800/450?random=1" alt="公园风景照片，有绿色的草地和树木">
                    </div>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="fas fa-eye"></i>
                        <span>浏览 567</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-heart"></i>
                        <span>意向 42</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-comment"></i>
                        <span>评论 18</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <div class="action-buttons">
                        <button class="action-btn like-btn liked">
                            <i class="fas fa-thumbs-up"></i>
                            <span>已点赞</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="fas fa-comment"></i>
                            <span>评论</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn bookmark-btn">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <div class="comments-section">
                    <div class="comment-input-container">
                        <div class="comment-avatar"></div>
                        <div class="comment-input-wrapper">
                            <input type="text" class="comment-input" placeholder="发表你的评论...">
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 多张图片动态 -->
            <div class="post-card">
                <div class="post-author">
                    <div class="author-avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="author-info">
                        <a href="#" class="author-name">刘伟</a>
                        <div class="post-time">3天前 · 分享了一组照片</div>
                    </div>
                    <div class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>
                
                <div class="post-content">
                    <p>周末参加了一个美食节，尝试了很多特色小吃，每样都很有特色，推荐给大家！</p>
                </div>
                
                <div class="post-images">
                    <div class="post-image">
                        <img src="https://picsum.photos/400/400?random=2" alt="美食照片，展示了一道特色菜肴">
                    </div>
                    <div class="post-image">
                        <img src="https://picsum.photos/400/400?random=3" alt="美食照片，展示了一组小吃">
                    </div>
                    <div class="post-image">
                        <img src="https://picsum.photos/400/400?random=4" alt="美食照片，展示了甜点">
                    </div>
                    <div class="post-image">
                        <img src="https://picsum.photos/400/400?random=5" alt="美食照片，展示了饮品">
                    </div>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="fas fa-eye"></i>
                        <span>浏览 892</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-heart"></i>
                        <span>意向 76</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-comment"></i>
                        <span>评论 32</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <div class="action-buttons">
                        <button class="action-btn like-btn">
                            <i class="fas fa-thumbs-up"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="fas fa-comment"></i>
                            <span>评论</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn bookmark-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 深色风格动态列表 -->
        <div class="feed-section style-dark">
            <h3 class="style-label">深色风格动态列表</h3>
            
            <!-- 无图片动态 -->
            <div class="post-card">
                <div class="post-author">
                    <div class="author-avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="author-info">
                        <a href="#" class="author-name">赵阳</a>
                        <div class="post-time">1天前 · 发布了一条动态</div>
                    </div>
                    <div class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>
                
                <div class="post-content">
                    <p>刚刚完成了一个月的健身计划，虽然过程很辛苦，但看到成果还是很开心的。坚持果然是最棒的品质，接下来要开始新的挑战了！</p>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="fas fa-eye"></i>
                        <span>浏览 421</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-heart"></i>
                        <span>意向 53</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-comment"></i>
                        <span>评论 15</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <div class="action-buttons">
                        <button class="action-btn like-btn">
                            <i class="fas fa-thumbs-up"></i>
                            <span>点赞</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="fas fa-comment"></i>
                            <span>评论</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn bookmark-btn">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 单张图片动态 -->
            <div class="post-card">
                <div class="post-author">
                    <div class="author-avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="author-info">
                        <a href="#" class="author-name">陈静</a>
                        <div class="post-time">4天前 · 分享了一张照片</div>
                    </div>
                    <div class="post-menu">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>
                
                <div class="post-content">
                    <p>第一次尝试做蛋糕，虽然卖相一般，但味道还不错，纪念一下～ 下次争取做得更好看！</p>
                </div>
                
                <div class="post-images single-image">
                    <div class="post-image">
                        <img src="https://picsum.photos/800/450?random=6" alt="自制蛋糕照片，放在白色盘子上">
                    </div>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="fas fa-eye"></i>
                        <span>浏览 632</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-heart"></i>
                        <span>意向 87</span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-comment"></i>
                        <span>评论 24</span>
                    </div>
                </div>
                
                <div class="post-actions">
                    <div class="action-buttons">
                        <button class="action-btn like-btn liked">
                            <i class="fas fa-thumbs-up"></i>
                            <span>已点赞</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="fas fa-comment"></i>
                            <span>评论</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="fas fa-share"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn bookmark-btn">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    if (this.classList.contains('liked')) {
                        this.innerHTML = '<i class="fas fa-thumbs-up"></i><span>已点赞</span>';
                    } else {
                        this.innerHTML = '<i class="fas fa-thumbs-up"></i><span>点赞</span>';
                    }
                });
            });
            
            // 收藏功能
            const bookmarkButtons = document.querySelectorAll('.bookmark-btn');
            bookmarkButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('bookmarked');
                    if (this.classList.contains('bookmarked')) {
                        this.innerHTML = '<i class="fas fa-bookmark"></i><span>已收藏</span>';
                    } else {
                        this.innerHTML = '<i class="fas fa-bookmark"></i><span>收藏</span>';
                    }
                });
            });
            
            // 评论功能
            const commentButtons = document.querySelectorAll('.comment-btn');
            commentButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const postCard = this.closest('.post-card');
                    const commentInput = postCard.querySelector('.comment-input');
                    if (commentInput) {
                        commentInput.focus();
                    } else {
                        alert('点击打开评论区');
                    }
                });
            });
            
            // 评论点赞功能
            const commentLikeButtons = document.querySelectorAll('.like-comment-btn');
            commentLikeButtons.forEach(button => {
                button.addEventListener('click', function(e) {
                    e.preventDefault();
                    let text = this.textContent.trim();
                    let countMatch = text.match(/\d+/);
                    if (countMatch) {
                        let count = parseInt(countMatch[0]);
                        if (this.classList.contains('liked')) {
                            count--;
                            this.classList.remove('liked');
                            this.style.color = '';
                        } else {
                            count++;
                            this.classList.add('liked');
                            this.style.color = '#ef4444';
                        }
                        this.textContent = `点赞 (${count})`;
                    }
                });
            });
            
            // 回复功能
            const replyButtons = document.querySelectorAll('.reply-btn');
            replyButtons.forEach(button => {
                button.addEventListener('click', function(e) {
                    e.preventDefault();
                    const commentItem = this.closest('.comment-item, .reply-item');
                    const commentInput = commentItem.closest('.comments-section').querySelector('.comment-input');
                    
                    if (commentInput) {
                        const authorName = commentItem.querySelector('.comment-author').textContent.split(' ')[0];
                        commentInput.value = `回复 @${authorName}：`;
                        commentInput.focus();
                    }
                });
            });
            
            // 评论提交
            const commentInputs = document.querySelectorAll('.comment-input');
            commentInputs.forEach(input => {
                input.addEventListener('keydown', function(e) {
                    if (e.key === 'Enter' && this.value.trim() !== '') {
                        e.preventDefault();
                        alert(`评论已提交：${this.value}`);
                        this.value = '';
                    }
                });
            });
            
            // 更多选项
            const postMenus = document.querySelectorAll('.post-menu');
            postMenus.forEach(menu => {
                menu.addEventListener('click', function() {
                    alert('显示更多操作选项');
                });
            });
            
            // 分享功能
            const shareButtons = document.querySelectorAll('.share-btn');
            shareButtons.forEach(button => {
                button.addEventListener('click', function() {
                    alert('打开分享选项');
                });
            });
        });
    </script>
</body>
</html>
    
